package com.beans;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@TableName("rolepermission")
public class RolePermission {
	@TableId(value = "rolePermissionID",type = IdType.AUTO)
    private int rolePermissionID;
    private int roleID;
    private int permissionID;

    public RolePermission(int rolePermissionID, int roleID, int permissionID) {
        this.rolePermissionID = rolePermissionID;
        this.roleID = roleID;
        this.permissionID = permissionID;
    }

    public int getRolePermissionID() {
        return rolePermissionID;
    }

    public void setRolePermissionID(int rolePermissionID) {
        this.rolePermissionID = rolePermissionID;
    }

    public int getRoleID() {
        return roleID;
    }

    public void setRoleID(int roleID) {
        this.roleID = roleID;
    }

    public int getPermissionID() {
        return permissionID;
    }

    public void setPermissionID(int permissionID) {
        this.permissionID = permissionID;
    }

    @Override
    public String toString() {
        return "RolePermission{" +
                "rolePermissionID=" + rolePermissionID +
                ", roleID=" + roleID +
                ", permissionID=" + permissionID +
                '}';
    }
}